<template>
  <div>
    <h1 v-upper='msg'>我是根组件</h1>
    <h1>{{time|timeFormat}}</h1>
    <MyComponent></MyComponent>
  </div>
</template>

<script>
import MyComponent from "@/components/MyComponent";
export default {
  data() {
    return { msg: "lmy", time: Date.now() };
  },
  components: {
    MyComponent,
  },
  // 组件挂载完毕
  mounted(){
    // console.log(this)
    this.$daju()
  }
};
</script>

<style>
</style>